#ifndef _moudle_
#define _moudle_
struct money{
	int y;
	int j;
	int f;
};
typedef struct date {//information
	char ao;//administrative office
	int num;// serial number
	//char doc_name[20];//doctor name
	char pat_name[20];//patient name
	int age;//patient age
	struct money cost;
	struct date * next;
} datedef;
typedef struct date * pointer;
//-----------------major function
int showmenu();//open the menu
int input();//input and creat a new date
int change();
int del();
int docsum();//accruing amounts
int aoprint();//print all date of an administrative office
int patsum();//print all cost of a patient
int allprint();//print all information
struct date* rec(void);
struct date* save(struct date* top);
int morethan();//print all dates whose cost >1000
int fromto();//print the dates form ... to ...
//----------------module
int s(char w);//change chara to number
pointer search(int u);//search the date as required,then return its pointer
int myprint(pointer adate);//print the information of a date
char * ao(char n);//return the name of ao
char * name(int n);//return the name of doctor
int line();//printf a line
//----------------
//extern char doc[100][20];//doctors' name
extern char ch;//clear stdin
extern pointer head,p,q;//!!!the list of date used in the program,p->end,q->used
#endif
